import java.awt.*;
import java.awt.event.*;


// Please do not modify this file. Nothing should be added.
// This way, it functions the same as FuzzyApplet
public class FuzzyApplication extends Frame {   
    private RootPanel ui;

    private FuzzyApplication(String label) {
        super(label);
        
        this.ui = new RootPanel("root");     
        this.add(this.ui);
        
        this.addQuitters();
    }

    private void addQuitters() {
        this.addWindowListener(
            new WindowAdapter() {
                public void windowClosing(WindowEvent we) {
                    System.exit(0);
                }
            }
        ); 
        /*
           // Do we want this? It doesn't work if another control (like a combobox)
           // is stealing the inputs.
        this.addKeyListener(
            new KeyAdapter() {
                public void keyPressed(KeyEvent ke) {
                    if ( ke.getKeyCode() == java.awt.event.KeyEvent.VK_Q ) {
                        System.exit(0);
                    }
                }
            }
        ); 
        */
    }
    
    public static void main (String argv[]) {     
        FuzzyApplication a = new FuzzyApplication("Fuzzy Wuzzy was a Car");
        a.pack();     
        a.setVisible(true);
        a.setSize(1000,600);
    } 
}
